package usb;

public class AnimalTest {
    public static void main(String[] args) {
        String name = "zs";
        int age = 18;

        Animal a = new Animal(name, age);
        System.out.println(a.getName());
        System.out.println(a.getAge());

        Cat cat = new Cat(name,age);
        System.out.println(cat.getName());
        System.out.println(cat.getAge());
    }
}
